<% content_for :title do %><%= :cfws.l %><% end %><table class="list">
<thead><tr>
<th><%= :cfw_sent_by.l %></th>
<th><%= :cfw_sent_date.l %></th>
<th><%= :cfw_success_count.l %></th>
<th><%= :cfw_error_count.l %></th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
<% resources.each do |cfw| %>
  <tr>
    <td><%= cfw.user.render %></td>
    <td><%= link_to cfw.created_at.l(:long), admin_call_for_worker_url(cfw) %></td>
    <td class="number"><%= cfw.delivery_successes.count %></td>
    <td class="number"><%= cfw.delivery_errors.count %></td>
    <td><%= link_to :delete.l, admin_call_for_worker_url(cfw), :method => :delete, :confirm => :cfw_delete_confirmation.l %></td>
      <!-- <td>
        <ul>
          <% cfw.events.each do |event| %>
            <li><%= h event.name %></li>
          <% end %>
        </ul>
      </td> -->
    <!-- <% [:delivery_successes, :delivery_errors].each do |method| %>
    <td>
      <ul>
      <% cfw.send(method).each do |status| %>
        <li><%= h status.email %><%= ": #{h(status.message)}" if status.respond_to? :message %> (<%= link_to status.user.render, admin_user_url(status.user) %>)</li>
      <% end %>
      </ul>
    </td>
    <% end %> -->
  </tr>
<% end %>
</tbody>
</table>